def m(n):
    ans = 0
    flag = 1
    for i in (1, 2 * n + 1, 2):
        ans += 1 / i * flag
        flag *= -1
    return ans * 4

i = eval(input('请输入i的值'))
print('m(i)的值为%.4f'% m(i))